//
//  RWGoodsContentTableViewCell.m
//  RedWine
//
//  Created by Liufangfang on 2017/4/6.
//  Copyright © 2017年 HuiBangKe. All rights reserved.
//

#import "RWGoodsContentTableViewCell.h"

@implementation RWGoodsContentTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self setGoodsContentCell];
    }
    
    return self;
}

- (void)loadData:(NSString *)imageUrl{

    [_imageV sd_setImageWithURL:[NSURL URLWithString:imageUrl] placeholderImage:[UIImage imageNamed:@"huibangke"]];
}

- (void)setGoodsContentCell{

    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, FTY_SCREEN_WIDTH, 210.*FTY_HEIGHT_BASE)];
    [self.contentView addSubview:imageV];
    imageV.contentMode = UIViewContentModeScaleAspectFit;
    _imageV = imageV;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
